﻿using ReactiveUI;

namespace LS.Screening.UI.Common.Mvvm;

/// <summary>
/// ViewModel基类
/// </summary>
public abstract class ViewModelBase : ReactiveObject
{
    PageViewModel pageViewModel;
    /// <summary>
    /// 分页信息
    /// </summary>
    public PageViewModel PageViewModel { get => pageViewModel; set => this.RaiseAndSetIfChanged(ref pageViewModel, value); }

    /// <summary>
    /// 当前用户信息
    /// </summary>
    public CurrentLoginUser CurrentLoginUser => CommonApplication.CurrentLoginUser;

    /// <summary>
    /// 标题
    /// </summary>
    public string Title => "聆数筛查管理系统";
}
